home *** CD-ROM | disk | FTP | other *** search
- public class ClassSpiderSac extends Codex {
- boolean bEnabled;
-
- public void created(int guid) {
- ((Codex)this).SetTimer(3.0F);
- }
-
- public void restore(int flags) {
- this.bEnabled = CodexSequence.RestoreBoolean();
- }
-
- void touched(int guid, int toucherGuid, int captureID) {
- if (this.bEnabled) {
- if (Codex.IsPlayerGuid(toucherGuid)) {
- CodexThing sack = new CodexThing(guid);
- sack.SpawnThing("dust");
- sack.SpawnThing("ghoulSpiderBaby");
- sack.SpawnThing("ghoulSpiderBaby");
- sack.SpawnThing("ghoulSpiderBaby");
- sack.SpawnThing("ghoulSpiderBaby");
- sack.SpawnThing("ghoulSpiderBaby");
- sack.Remove();
- this.bEnabled = false;
- }
-
- }
- }
-
- public void killed(int guid, int causeID, int captureID) {
- this.bEnabled = false;
- }
-
- public void save(int flags) {
- CodexSequence.SaveBoolean(this.bEnabled);
- }
-
- public void timer(int timerID, float arg0, float arg1, float arg2, float arg3) {
- this.bEnabled = true;
- }
- }
-